<?php
declare(strict_types = 1);

namespace App\Service\Test;

use Lib\Test\IUpdateMoney;
use Swoft\Rpc\Server\Annotation\Mapping\Service;
use App\Annotation\Mapping\ActorTransaction;
use Tool\Query\EBuilder;

/**
 * @Service()
 * @author mg
 */
class UpdateMoneyService implements IUpdateMoney
{
	
	/**
	 * @ActorTransaction()
	 * {@inheritDoc}
	 * @see \Lib\Test\IUpdateMoney::parse()
	 */
	public function parse(float $money): bool
	{
		
		return 1 === EBuilder::new()->from('integral')
			->where('id', 27)
			->increment('number', 100);
	}
}